AC_PREREQ(2.57)
AC_INIT(tiffanygirl, 0.1)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
AC_PROG_INTLTOOL
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_CC_C_O
AM_PROG_LIBTOOL

AC_HEADER_STDC
# Checks for libraries.
pkg_modules="glib-2.0 >= 2.6.0 \
             gtk+-2.0 >= 2.6.0 \
             libxml-2.0 \
             gthread-2.0"

PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)

PKG_CHECK_MODULES(LIBTIFFANYGIRL,
                  glib-2.0 >= 2.6.0 \
                  libxml-2.0)
AC_SUBST(LIBTIFFANYGIRL_CFLAGS)
AC_SUBST(LIBTIFFANYGIRL_LIBS)

GETTEXT_PACKAGE=$PACKAGE
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])

ALL_LINGUAS=""
AM_GLIB_GNU_GETTEXT

AC_OUTPUT([
  Makefile
  libtiffanygirl/Makefile
  libtiffanygirl/libtiffanygirl.pc
  src/Makefile
  po/Makefile.in
])
